package org.jeecg.modules.purchase.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 仓库
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
@Data
@TableName("purchase_repository")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="purchase_repository对象", description="仓库")
public class PurchaseRepository implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主健id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主健id")
    private String id;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private String code;
	/**仓库名称*/
	@Excel(name = "仓库名称", width = 15)
    @ApiModelProperty(value = "仓库名称")
    private String name;
	/**仓库位置*/
	@Excel(name = "仓库位置", width = 15)
    @ApiModelProperty(value = "仓库位置")
    private String place;
	/**仓库大小*/
	@Excel(name = "仓库大小", width = 15)
    @ApiModelProperty(value = "仓库大小")
    private String totalSize;
	/**仓库剩余大小*/
	@Excel(name = "仓库剩余大小", width = 15)
    @ApiModelProperty(value = "仓库剩余大小")
    private String surplusSize;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill=FieldFill.UPDATE)
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**逻辑删除 0 表示未删除 1 表示删除*/
    @TableLogic
//	@Excel(name = "逻辑删除 0 表示未删除 1 表示删除", width = 15)
    @ApiModelProperty(value = "逻辑删除 0 表示未删除 1 表示删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
}
